<div class="ibox">  
	<div class="ibox-title notselect">
		<h5>搜索词管理</h5>
		<div class="nowrap pull-right" style="margin-top:10px">
			<!--button data-modal='{:url("$classuri/add")}' data-title="添加链接" class='layui-btn layui-btn-small'><i
			class='fa fa-plus'></i> 添加链接
			</button>
			<button data-update data-field='delete' data-action='{:url("$classuri/del")}'
			class='layui-btn layui-btn-small layui-btn-danger'><i class='fa fa-remove'></i> 删除关键词
			</button-->
			<li class="fr">
				<div>搜索次数 <span>{$sum_money}</span> 次</div>
			</li>
			<li class="fr">
				<div>搜索数量 <span>{$sum_order}</span> 个</div>
			</li>			
		</div>
	</div>
</div>

<form onsubmit="return false;" data-auto="true" method="post">
    <input type="hidden" value="resort" name="action"/>
    <table class="layui-table" lay-skin="line" lay-size="sm">
        <thead>
        <tr>
            <th class='list-table-check-td'>
                <input data-none-auto="" data-check-target='.list-check-box' type='checkbox'/>
            </th>
            <th>编号</th>
            <th>关键词</th>
            <th class='visible-lg'>搜索次数</th>
			<th class='visible-lg'>搜索类型</th>
			<th class='visible-lg'>首次时间</th>
			<th class='visible-lg'>最后时间</th>
			<th class='visible-lg'>创建IP</th>
            <th class='text-center'>状态</th>
            <th class='text-center'>操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $data as $v}
        <tr>
            <td class='list-table-check-td'>
                <input class="list-check-box" value='{$v.id}' type='checkbox'/>
            </td>
			<td>{$v.id}</td>
            <td>{$v.skey}</td>
            <td class='visible-lg'>{$v.num}</td>
			<td class='visible-lg'>{:typename($v.type)}</td>
			<td class='visible-lg'>{$v.airtime}</td>
			<td class='visible-lg'>{$v.endtime}</td>
			<td class='visible-lg'>{$v.endip}</td>
            <td class='text-center'>
				<span style="color:#090">正常</span>
            </td>
            <td class='text-center nowrap'>
                {if auth("$classuri/del")}
                <span class="text-explode">|</span>
                <a data-update="{$v.id}" data-field='delete' data-action='{:url("$classuri/del")}'
                   href="javascript:void(0)">删除</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
</form>{$page}